package com.dragon.modules.yuegou.excel.wallet;

import com.dragon.modules.media.annotations.ExcelSheet;
import com.fasterxml.jackson.annotation.JsonProperty;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;
@com.dragon.modules.media.annotations.ExcelWorkbook(template = "classpath:\\excel\\wallet\\cardGrant.xlsx")
public class CardGrantWorkbook {
	@ExcelSheet
	@JsonProperty("批量发放悦卡")
	private List<CardRrantRow> cardGrant;

	public static class CardRrantRow {

		@NotEmpty
		@JsonProperty("单位名称")
		private String companyName;

		@NotEmpty
		@JsonProperty("手机号")
		private String mobile;

		@NotEmpty
		@JsonProperty("姓名")
		private String employeesName;

		@NotEmpty
		@JsonProperty("悦卡名称")
		private String spuTitle;

		@NotNull
		@JsonProperty("悦卡面值")
		private String amount;

		public String getCompanyName() {
			return companyName;
		}

		public void setCompanyName(String companyName) {
			this.companyName = companyName;
		}

		public String getMobile() {
			return mobile;
		}

		public void setMobile(String mobile) {
			this.mobile = mobile;
		}

		public String getEmployeesName() {
			return employeesName;
		}

		public void setEmployeesName(String employeesName) {
			this.employeesName = employeesName;
		}

		public String getSpuTitle() {
			return spuTitle;
		}

		public void setSpuTitle(String spuTitle) {
			this.spuTitle = spuTitle;
		}

		public String getAmount() {
			return amount;
		}

		public void setAmount(String amount) {
			this.amount = amount;
		}
	}

	public List<CardRrantRow> getCardGrant() {
		return cardGrant;
	}

	public void setCardGrant(List<CardRrantRow> cardGrant) {
		this.cardGrant = cardGrant;
	}
}
